package com.edmendst.xmall.dto;

import com.edmendst.xmall.pojo.Cart;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class CartInfo {
    @JsonProperty("opcode")
    private Integer opcode;  //操作码（1：+1，0：-1）
    @JsonProperty("cartId")
    private Integer cartId;
    @JsonProperty("userId")
    private Integer userId;
    @JsonProperty("productId")
    private Integer productId;
    @JsonProperty("quantity")
    private Integer quantity;
    @JsonProperty("selected")
    private Boolean selected;
    @JsonProperty("productName")
    private String productName;
    @JsonProperty("productPrice")
    private BigDecimal productPrice;
    @JsonProperty("productStock")
    private Integer productStock;

    private String productImage;
}
